<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" %>
<%@ page import="com.javaee.web.SiteParameters"%>
<%@ page import="com.javaee.ejb.entity.Employee"%>

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
	<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
	<link rel="stylesheet" media="screen" type="text/css" title="design" href="css/design.css" />
	<link href="http://ajax.googleapis.com/ajax/libs/jqueryui/1.8/themes/base/jquery-ui.css" rel="stylesheet" type="text/css"/>
	<title>Projet Java EE - Team C0rT3X</title>
	<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.5/jquery.min.js"></script>
	<script src="http://ajax.googleapis.com/ajax/libs/jqueryui/1.8/jquery-ui.min.js"></script>
</head>
<body>

 <script>
 $(document).ready(function() {
   $("#date").datepicker({ dateFormat: 'dd/mm/yy' });
   $("#hireDate").datepicker({ dateFormat: 'dd/mm/yy' });
 });
 </script>
 
	<div>
		<div class="header base">
				<%
					Employee currentEmployee = (Employee) session.getAttribute("currentEmployee");
					
					if (currentEmployee != null)
					{
						%>
						<div class="floatLeft titleLeft">
							<p class="titre">Gestion et suivi des activit&eacute;s</p>
							<p class="titre">Communication instantan&eacute;e contr&ocirc;l&eacute;e</p>
						</div>
						<div>
							<p class="linkLogout">
								<a href="<%=SiteParameters.getFullServletPath("logout")%>" class="logout"><img class="logoutImg" src="<%=SiteParameters.getImagePath("logout")%>" /></a>
								&nbsp;
								<a href="<%=SiteParameters.getFullServletPath("logout")%>" class="logout"><%=currentEmployee.getFullName() %></a>
							</p>
						</div>
						<%
					}
					else
					{
						%>
						<p class="titre">Gestion et suivi des activit&eacute;s</p>
						<p class="titre">Communication instantan&eacute;e contr&ocirc;l&eacute;e</p>
						<%
					}
				%>
			</div>
		</div>